{extend name="Base/common" /}
{block name="content"}
<!-- BEGIN PAGE -->

<style>
    .center{
        display: flex;
        width: fit-content;
        margin: auto;
    }
</style>

<div class="page-content" style="padding-top: 10px;">

    <div class="container-fluid">
        <!-- 面包屑开始-->
        <div class="row-fluid">
            <div class="span12">

                <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                <h3 class="page-title">
                    用户列表
                </h3>
                <ul class="breadcrumb">
                    <li>
                        <a href="/ops/user/index">列表</a>
                        <i class="icon-angle-right"></i>
                    </li>
                    <li>
                        用户详情
                    </li>

                </ul>
                <!-- END PAGE TITLE & BREADCRUMB-->
            </div>
        </div>
        <!-- 面包屑结束 -->

        <!-- 带全选的表格开始 -->
        <div class="row-fluid">

            <div class="span12">

                <!-- BEGIN SAMPLE TABLE PORTLET-->

                <div class="portlet">

                    <div class="portlet-title">

                        <div class="caption"><i class="icon-reorder"></i>详情</div>

                        <!-- 表格内容整体操作结束 -->

                    </div>

                    <div class="portlet-body no-more-tables">

                        <ul class="list-group">
                            <li class="list-group-item">ID： {$data.id}</li>
                            <li class="list-group-item">昵称： {$data.nickname}</li>
                            <li class="list-group-item">余额： {$data.money}</li>
                            <li class="list-group-item">虎牙： {$data.tiger_tee}</li>
                            <li class="list-group-item">推荐码： {$data.code}</li>
                            <li class="list-group-item">绑定地区： {$data.address}</li>
                        </ul>

                        <div class="caption"><i class="icon-reorder"></i>收入详情</div>
                        <table class="table-bordered table-striped table-condensed cf" style="text-align: center;">

                            <thead class="cf">

                            <tr>
                                <th>Id</th>

                                <th>昵称</th>

                                <th>头像</th>

                                <th>理由</th>

                                <th>数值</th>

                                <th>时间</th>

                            </tr>

                            </thead>

                            <tbody>

                            {volist name="list" id="vo"}
                            <tr class="">

                                <td>{$vo.id}</td>

                                <td>{$vo.nickname}</td>

                                <td>

                                    {if condition="$vo.avatar_url" }
                                    <img src="{$vo.avatar_url}" style="width: 100px;height: 100px;">
                                    {/if}

                                </td>

                                <td>{$vo.reason}</td>

                                <td>{$vo.value}</td>

                                <td>{$vo.create_time}</td>

                            </tr>
                            {/volist}

                            </tbody>

                        </table>
                        {$list->render()}

                    </div>

                </div>
                <!-- END SAMPLE TABLE PORTLET-->

            </div>
        </div>
        <!-- 带全选的表格结束btn-sort-edit -->

    </div>
</div>

<script>

    function setStatus(id, status) {
        layui.use('layer', function () {
            $.post('/ops/company/setstatus', {status: status, id: id}, function (res) {
                var data = JSON.parse(res);
                if(data.errno == 0){
                    layer.msg('操作成功');
                    location.href = "/ops/company/index"
                }else {
                    layer.msg(data.msg, function (e) {

                    })
                }
            })
        })
    }

</script>
<!-- END PAGE -->
{/block}